<#--
***************************************************************************************
* 正元协同办公系统J2EE版
* 声明：金华正元计算机工程有限公司版权所有,
* 名称：wfReplyForm.ftl
* 功能：[回复信息] 编辑页面
* 来源：本页由wfReplyAction!detail.shtml跳转过来。
* 去向：
*    本页可以跳转到wfReceiptAction!list.ftl
*修改日志：
*			修改者及修改内容简述。
*			姓名：系统        时间：2008-10-24  内容：生成本页面
****************************************************************************************
-->

<#include "/common/pager_style/commonForm.ftl" encoding="UTF-8">
<#-- 定义有哪些按钮 reset:重写 back:返回 -->
<#if editState="modify">
	<#assign buttonsName = {"save":"保存","reset":"重置","back":"返回"}>
<#else>
	<#assign buttonsName = {"close":"关闭"}>
</#if>
<#assign buttonsImage={"close":"cancel.gif"}/>
<script language="JavaScript">
<!--
var actName="wfReceiptAction";
var domainName="wfReceipt";

function checkForm(){
    var strMsg = "";
	//类型：AlphaNumeric,Date,Email,Empty,Numeric,Money,PostalCode,Url
	strMsg = strMsg + Validate( "wfReceipt.code", "编码","NotEmpty|AlphaNumeric");
	strMsg = strMsg + Validate( "wfReceipt.name", "名称","NotEmpty");
	if( strMsg != "" )
	{
		alert( strMsg );
		return false;
	}
	else	return true;
}
function opt_close(){
	window.close();
}
-->
</script>
</head>
<body class="frameForm">
<form name="form1" action="" method="post" onsubmit="return checkForm();">
	<input type="hidden" id="wfReceipt.id" name="wfReceipt.id" value="${(wfReceipt.id)?if_exists}"/>
	<div class="ui-com-top">
		<#-- 生成按钮 -->
		<#include "/common/pager_style/pageButtons.ftl" encoding="UTF-8">
	</div><!-- end #ui-com-top -->
	<div class="ui-com-main">
	<div class="ui-formfield">
	<table class="tbl">
		<caption>回复信息</caption>
		<tbody>
			<!-- 数据录入 -->
			<tr>
				<td width="15%"></td>
				<td width="35%"></td>
				<td width="15%"></td>
				<td width="35%"></td>
			</tr>
			<tr>
				<th colspan=4>
					标题：${(wfReply.wfEntity.name)!!}&nbsp;&nbsp;&nbsp;&nbsp;
					机关代字：${(formDataMaster.docNum)!!}&nbsp;&nbsp;&nbsp;&nbsp;
					发布人：${(wfReply.wfEntity.lastUserName)!!}&nbsp;&nbsp;&nbsp;&nbsp;
					发布日期：${(wfReply.wfEntity.endDate)!!}
				</th>
			</tr>
			<#if (wfReply.primaryUnit)?exists>
				<#assign pu = wfReply.primaryUnit>
			<#else>
				<#assign pu = currentUser.deptName>
			</#if>
				<@pEdit.pageEditText
					label="主办单位*"
					pageState="${editState}"
					attName="wfReply.primaryUnit"
					attValue="${(pu)?if_exists}"
					validate="rule[notEmpty]"
					colSpanNum="3"/>
				<@pEdit.pageEditText
					label="协办单位"
					pageState="${editState}"
					attName="wfReply.assistUnit"
					attValue="${(wfReply.assistUnit)?if_exists}"
					colSpanNum="3"/>
			<tr>
				<@pEdit.pageEditTextarea
					beginTR = "false"
					endTR = "false"
					label="办理情况*"
					height="40"
					cssStyle="height:70px; width:98%"
					pageState="${editState}"
					attName="wfReply.content"
					attValue="${(wfReply.content)?if_exists}"
					validate="rule[notEmpty]"
					colSpanNum="3"/>
			</tr>
			<tr>
				<@pEdit.pageEditTextarea
					beginTR = "false"
					endTR = "false"
					label="存在问题"
					height="40"
					cssStyle="height:70px; width:98%"
					pageState="${editState}"
					attName="wfReply.problem"
					attValue="${(wfReply.problem)?if_exists}"
					colSpanNum="3"/>
			</tr>
			<#--
			<@pEdit.pageEditRadioUserValue
					beginTR = "false"
					endTR = "false"
					label="是否参加"
					styleTD="height:30px; width:30%"
					pageState="${editState}"
					attName="wfReply.isAttend"
					attValue="${(wfReply.isAttend)?if_exists}"
					optionSource={"0":"否","1":"是"}
					defaultValue="1"/>
			-->
			<tr>

			</tr>
			<tr>
				<@pEdit.pageEditText
					beginTR = "false"
					endTR = "false"
					label="创建人"
					pageState="${editState}"
					inputReadOnly="true"
					attName="wfReply.userName"
					attValue="${(wfReply.userName)?if_exists}"/>
					<input type="hidden" name="wfReply.sysUser.id" id="wfReply.sysUser.id" value="${(wfReply.sysUser.id)!!}">
				<@pEdit.pageEditText
					beginTR = "false"
					endTR = "false"
					label="创建部门"
					pageState="${editState}"
					inputReadOnly="true"
					attName="wfReply.deptName"
					attValue="${(wfReply.deptName)?if_exists}"/>
					<input type="hidden" name="wfReply.sysDept.id" id="wfReply.sysDept.id" value="${(wfReply.sysDept.id)!!}">
			</tr>
			<@pEdit.pageEditText
					label="回执时间"
					pageState="${editState}"
					attName="wfReply.createTime"
					attValue="${(wfReply.createTime)?if_exists}"
					colSpanNum="3"/>
		</tbody>
	</table><!-- 数据录入结束 -->
	</div><!-- end #ui-formfield -->
	</div><!-- end #ui-com-main -->
</form>
</body>
</html>